<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人账户开户 </title>
    <link  href=".././css/accountManage.css" rel="stylesheet" type="text/css"/>
    <link href=".././css/font-awesome.css" rel="stylesheet">
    <script type="text/javascript" src=".././js/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src=".././js/google-maps.js"></script>
    <link  href=".././css/tools.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src=".././js/tools.js"></script>
    <script type="text/javascript" src=".././js/account/personalRegister.js"></script>
    <script src=".././js/jquery.js"></script>
    <script>$(document).ready(function() {$(".vertical-nav").verticalnav({speed: 400,align: "left"});});</script>
</head>
<body>
<div id="Container">
    <div id="Header">
        <center><h1>股票交易系统后台管理</h1></center>
    </div>
    <div id="Content">
        <div id="Content-Left">
            <ul class="vertical-nav dark red">
                <li class="active"><a href=".././index.html"><i class="icon-home"></i>首页</a></li>
                <li><a href="../html/accountManage.html"><i class="icon-cogs"></i>证券账户管理
                    <span class="submenu-icon"></span></a>
                    <ul>
                        <li><a href=".././html/personRegister.html">个人账户开户</a></li>
                        <li><a href=".././html/coporationRegister.html">法人账户开户</a></li>
                        <li><a href=".././html/logoutAccount.html">挂失账户</a></li>
                        <li><a href=".././html/lossAccount.html">注销账户信息</a></li>
                        <li><a href=".././html/AccountStateQuery.html">查询账户状态</a></li>
                        <li><a href="../html/accountManage.html">查询账户信息</a></li>
                        <li><a href="../html/accountCheckAndQuery.html">查看并审核未审核客户信息</a></li>
                    </ul>
                </li>
                <li><a href=" "><i class="icon-briefcase"></i>资金账户管理
                    <span class="submenu-icon"></span></a>
                    <ul>
                        <li><a href="./fund/Accountnew.html">创建新资金用户</a></li>
                    </ul>
                </li>
                <li><a href="  "><i class="icon-user"></i>关于我们</a></li>
                <li><a href="  "><i class="icon-envelope"></i>联系我们</a></li>
            </ul>
        </div>
        <div id="Content-Right">
            <div  id="toolbar" class="toolbar">
                <h2 class="title">创建新的资金用户</h2>
            </div>
            <!-- 数据修改面板-->
            <div  id="editPanel" style="overflow-x: hidden;margin: 0;padding:0;">
                <form id="pRegform" >
                    <table class="edittable" style="width:900px">
                        <tr style="height:0px;border: 0px;">
                            <td class="right" style="width:130px;border: 0px;"></td>
                            <td class="left" style="width:310px;border: 0px;"></td>
                            <td class="right" style="width:130px;border: 0px;"></td>
                            <td class="left" style="border: 0px;"></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:130px;border-top: 0px;">姓  名：</td>
                            <td class="left" style="border-top: 0px;height: 40px;line-height: 40px;">
                                <input type="text" name="pName" id="pName" placeholder="请输入您的姓名"watermark="" class="input" maxlength="18" />
                            </td>
                        </tr>
                        <tr>
                            <td class="right" style="width: 100px">性  别：</td>
                            <td class="left" style="width:100px">
                                <select name="pSex" id="pSex">
                                    <option value="0">男 </option>
                                    <option value="1">女</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px">身份证号:</td>
                            <td class="left" style="width:100px"><input type="text" id="pIdNumber" name="pIdNumber" placeholder="请输入您的身份证号"watermark="" class="input"maxlength="18"  /></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 家庭地址:</td>
                            <td class="left" style="width:100px"><input type="text"class="input" id="pHomeAddress" name="pHomeAddress" placeholder="请输入您的家庭地址"watermark=""/></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 职    业:</td>
                            <td class="left" style="width:100px"><input type="text" class="input" id="pOccupation" name="pOccupation" pakceholder="请输入您的职业" watermark="" ></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 学    历:</td>
                            <td class="left" style="width:100px"><input type="text" class="input"  id="pEducation" name="pEducation" pakceholder="您的学历是？" watermark=""></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px">工作单位:</td>
                            <td class="left" style="width:100px"><input type="text" class="input" id="pWorkUnit" name="pWorkUnit" pakceholder="请输入您的工作单位是？"watermark="" ></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 联系电话:</td>
                            <td class="left" style="width:100px"><input type="text" class="input" id="pNumber" name="pNumber" pakceholder="请输入您的联系电话"watermark="请输入您的联系电话"  ></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 是否代办:</td>
                            <td class="left" style="width:100px"><select name="pProxy" id="pProxy" onclick="isProxy()">
                                <option value="0">不代办 </option>
                                <option value="1">代办</option>
                            </select></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px"> 代办人身份证号:</td>
                            <td class="left" style="width:100px"> <input  class="input"type="text"  id="pProxyIdNumber" name="pProxyIdNumber" pakceholder="请输入代办人身份证号"  maxlength="200"  /></td>>
                        </tr>
                        <tr  width="2">
                            <td class="right" style="width:100px"><input class="input" type="submit" id="submitBtn" onclick="save1()"/></td>
                            <td class="left" style="width:100px"><input class="input"id="reset" type="reset"/></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div id="Footer"> <p></font>COPYRIGHT2017-2017 &copy;<BR></font></p></div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    function save1() {
        var fdata = $("#pRegform").serialize();
        $.param(fdata);
        alert("abc");
        $.ajax({
            url: "../securityAccount/p",
            type: "POST",
            data: fdata,
            // processData:false,et=utf-8",
            dataType: "json",
            success: function (data) {
                //var obj=eval("("+result+")");
                //或者$.parsejson(data);
                if (data.code == 0) {
                    alert(data.message);
                    alert("您的账号为"+data.object);
                } else if (data.code == 1) {
                    alert(data.message);
                }
            }
        });
    }
</script>